{include file='admin/before_body.phtml' title='后台首页'}
<style>
.user-avatar { border: 2px solid #c9d6e5;border-radius: 100%;max-width: 50px;margin-right: 10px;margin-left: 0;box-shadow: none; }
tbody .btn { margin-bottom: 2px }
</style>
  {include file='admin/header.phtml'}
    <div class="main-container" id="main-container">
      <script type="text/javascript">try { ace.settings.check('main-container' , 'fixed') }catch(e) {  }</script>
      <div class="main-container-inner">
        {include file='admin/sidebar.phtml'}
        <div class="main-content">
{$breadcrumbs=[]}
{$breadcrumbs[] = ['name' => '玩家中心', 'icon' => 'icon-home home-icon']}
{$breadcrumbs[] = ['name' => '抽奖管理', 'isactive' => true]}
{include file='admin/breadcrumb.phtml' breadcrumbs=$breadcrumbs}
          <div class="page-content">
            {html_messages}
            <div class="row">
{include file='admin/player/luckydraw_report.phtml' breadcrumbs=$breadcrumbs}



              <div class="col-xs-12"><div class="space-6"></div></div>
{include file='admin/player/luckydraw_search.phtml' breadcrumbs=$breadcrumbs}

              <div class="col-xs-12"><div class="space-6"></div></div>
<div class="col-xs-12">
  <div class="table-responsive">
    <div id="sample-table-2_wrapper" class="dataTables_wrapper" live="grid">
      <table id="sample-table-2" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
        <thead>
          <tr>
            <th class="center" width="150">头像</th>
            <th class="center" width="150">昵称</th>
            <th class="center" width="150">参与时间</th>
          </tr>
        </thead>
        <tbody>
          {if empty($list)}
            <tr><td colSpan="10"><p class="center">找不到符合条件的记录<p></td></tr>
          {/if}
          {foreach $list as $luckydraw}
            <tr data-id="{$luckydraw->luckydraw_id}">
              <td class="center"><img class="user-avatar" src="{$luckydraw->headimgurl}"></td>
              <td class="center">{$luckydraw->nickname}</td>
               <td class="center">{$luckydraw->created|date_format:'Y-m-d G:i:s'}</td>
            </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="row">
        <div class="col-sm-6">
        </div>
        <div class="col-sm-6">
          <div class="dataTables_paginate paging_bootstrap">
            {html_pagination page="$page" rows="$rows" count="$count" showinfo="1"
              url="{url('admin/player/luckydraw')}" query=$query}
          </div>
        </div>
      </div>
    </div>
  </div>
</div>



            </div>
          </div>
        </div>
      </div>
    </div>
</body>
{include file='admin/after_body.phtml'}
</html>

